import axios from 'axios'
import base from '@/utils/config/base'

export const getUltraCardioList = function(params) {
  return axios({
    url: base.prod + '/getUltraCardioList',
    method: 'get',
    params: params
  })
}

// 添加或修改心动
export const AddUltraCardio = function(params) {
  return axios({
    url: base.prod + '/Api/v1/AddUltraSoundWeb',
    method: 'post',
    data: params
  })
}

// 修改颈动脉
export const updateUltraIns = function(params) {
  return axios({
    url: base.prod + '/Api/v1/updateUltraIns',
    method: 'post',
    data: params
  })
}

// 生成超声word文档
export const genUltraSoundWord = function(params) {
  return axios({
    url: 'http://127.0.0.1:48889/Api/v1/genUltraSoundWord',
    method: 'get',
    params: params
  })
}


// 获取剩余次数
export const getContractNum = function(params) {
  return axios({
    url: base.prod + '/getContractNum',
    method: 'get',
    params: params
  })
}